package cn.hbu.zlfw.patent.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.hbu.zlfw.admin.entity.Expert;
import cn.hbu.zlfw.admin.entity.ScienceExpert;
import cn.hbu.zlfw.common.base.service.impl.BaseServiceImpl;
import cn.hbu.zlfw.common.util.PageModel;
import cn.hbu.zlfw.patent.dao.PatentDao;
import cn.hbu.zlfw.patent.entity.Patent;
import cn.hbu.zlfw.patent.service.PatentService;
/**
 * 
 * @ClassName: PatentServiceImpl 
 * @Description: 专利service接口实现
 * @author 王鹏伟<1223443289@qq.com>
 * @date 2017年11月2日 下午7:02:07  
 * @version V1.0
 */
@Service("patentService")
@Transactional
public class PatentServiceImpl extends BaseServiceImpl<Patent, String> implements PatentService{
	
	@Autowired
	private PatentDao patentDao;

	/*
	 * (non-Javadoc)
	 * @see cn.hbu.zlfw.patent.service.PatentService#listPatentByParamsToResearcher(java.lang.Integer, java.lang.String, java.lang.String)
	 */
	@Override
	public List<Patent> listPatentByParamsToResearcher(Integer patentState, String name, String researcherId) {
		return this.patentDao.listPatentByParamsToResearcher(patentState, name, researcherId);
	}
	/*
	 * (non-Javadoc)
	 * @see cn.hbu.zlfw.patent.service.PatentService#listPatentByParamsToScience(cn.hbu.zlfw.common.util.PageModel, java.lang.String, java.lang.Integer, java.lang.String)
	 */
	@Override
	public PageModel<Patent> listPatentByParamsToScience(PageModel<Patent> pageModel, String name,  
			String scienceId) {
		return this.patentDao.listPatentByParamsToScience(pageModel,name , scienceId);
	}
	/*
	 * (non-Javadoc)
	 * @see cn.hbu.zlfw.patent.service.PatentService#listAssistPatentByParamsToScience(cn.hbu.zlfw.common.util.PageModel, java.lang.String, java.lang.Integer, java.lang.String)
	 */
	@Override
	public PageModel<Patent> listAssistPatentByParamsToScience(PageModel<Patent> pageModel, String name,
			String assistScienceId) {
		return this.patentDao.listAssistPatentByParamsToScience(pageModel,name , assistScienceId);
	}
	/*
	 * (non-Javadoc)
	 * @see cn.hbu.zlfw.patent.service.PatentService#listAllPatentByParamsToScience(cn.hbu.zlfw.common.util.PageModel, java.lang.String, java.lang.String)
	 */
	@Override
	public PageModel<Patent> listAllPatentByParamsToScience(PageModel<Patent> pageModel,String name, Integer schoolType) {
		return this.patentDao.listAllPatentByParamsToScience(pageModel, name,schoolType);
	}
	/*
	 * (non-Javadoc)
	 * @see cn.hbu.zlfw.patent.service.PatentService#listFinishPatentByParamsToScience(cn.hbu.zlfw.common.util.PageModel, java.lang.String, java.lang.String)
	 */
	@Override
	public PageModel<Patent> listFinishPatentByParamsToScience(PageModel<Patent> pageModel, String name, String scienceId) {
		return this.patentDao.listFinishPatentByParamsToScience(pageModel,name,scienceId);
	}
	/*
	 * (non-Javadoc)
	 * @see cn.hbu.zlfw.patent.service.PatentService#listPatentOfSubjectRelatedToScience(cn.hbu.zlfw.common.util.PageModel, java.lang.String, java.lang.String)
	 */
	@Override
	public PageModel<Patent> listPatentOfSubjectRelatedToScience(PageModel<Patent> pageModel, String name,ScienceExpert scienceExpert) {
		return this.patentDao.listPatentOfSubjectRelatedToScience(pageModel,name,scienceExpert);
	}
	/*
	 * (non-Javadoc)
	 * @see cn.hbu.zlfw.patent.service.PatentService#listAllPatentByParamsToUnit(cn.hbu.zlfw.common.util.PageModel, java.lang.String, java.lang.Integer)
	 */
	@Override
	public PageModel<Patent> listAllPatentByParamsToUnit(PageModel<Patent> pageModel, String name, Integer schoolType) {
		return this.patentDao.listAllPatentByParamsToUnit(pageModel,name,schoolType);
	}
	/*
	 * (non-Javadoc)
	 * @see cn.hbu.zlfw.patent.service.PatentService#listPatentByParamsToUnit(cn.hbu.zlfw.common.util.PageModel, java.lang.String, java.lang.Integer)
	 */
	@Override
	public PageModel<Patent> listPatentByParamsToUnit(PageModel<Patent> pageModel, String name, Integer schoolType) {
		return this.patentDao.listPatentByParamsToUnit(pageModel,name,schoolType);
	}
	/* (non-Javadoc)
	 * @see cn.hbu.zlfw.patent.service.PatentService#listPatentOfSubjectRelatedToScience(cn.hbu.zlfw.common.util.PageModel, java.lang.String, cn.hbu.zlfw.admin.entity.Expert)
	 */
	@Override
	public PageModel<Patent> listPatentOfSubjectRelatedToExpert(PageModel<Patent> pageModel, String name,
			Expert expert) {
		// TODO Auto-generated method stub
		return this.patentDao.listPatentOfSubjectRelatedToExpert(pageModel,name,expert);
	}
	/* (non-Javadoc)
	 * @see cn.hbu.zlfw.patent.service.PatentService#listAllFinishPatent(cn.hbu.zlfw.common.util.PageModel, java.lang.String, java.lang.String)
	 */
	@Override
	public PageModel<Patent> listAllFinishPatent(PageModel<Patent> pageModel, String name, String id,Integer state) {
		// TODO Auto-generated method stub
		return this.patentDao.lisAllfinishPatent(pageModel,state);
	}

}
